/**
 * jims
 */
package com.jims.master.modules.csm.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.csm.entity.ExpDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消耗品字典维护DAO接口
 * @author zhuq
 * @version 2017-03-02
 */
@MyBatisDao
public interface ExpDictDao extends CrudDao<ExpDict> {

    /**
     * 根据消耗品expCode查询列表
     * @param expDict
     * @author  zhuq
     */
    public List<ExpDict> findByExpCode(ExpDict expDict);

    /**
     * 自动补全查询
     * @param expDict
     * @param q
     * @return
     * @author CTQ
     */
    public List<ExpDict> findAutoCompleteList(@Param("expDict")ExpDict expDict, @Param("q") String q, @Param("limit") String limit);

}
